package org.lc.httpcollector.model

data class Response(
    /**
     * http响应码
     */
    var code: Int,
    var headers: Map<String, String> = emptyMap(),
    var body: String? = null,
    var innerError: InnerError? = null,
) {
    val success
        get() = innerError == null && code in 200 until 300
}
